package com.d.main;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*
		 * try {
		 * System.out.println(URLEncoder.encode("2195：86可爱MM真诚挂","UTF-8"));
		 * SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		 * String date = sdf.format(new Date()); System.out.println(date);
		 * 
		 * } catch (UnsupportedEncodingException e) { // TODO Auto-generated
		 * catch block e.printStackTrace(); }
		 */
		String temp = "var c = new docWriter('PieLove',398,7321,0,6,245,7499,'/groups/social.faq/PieLove',0,1);"
				+ "c.o(1356439,1356439,'adddc','b@',1241432576,'替漂亮妹妹找个优秀男友 ',755,0,0);"
				+ "c.o(1356445,1356445,'flyinmyheart','b@',1241432759,'代友发文：85研二MM真诚寻觅有缘GG（附照） ',924,0,0);"
				+ "c.o(1356504,1356504,'littkitt','m@',1241436247,'代mm征男友 ',202,0,0);"
				+ "c.o(1356518,1356518,'welmet','g ',1241437383,'北大gg征女友，非常nice ',828,0,0);"
				+ "c.o(1356593,1356593,'happygona','b ',1241442336,'清华两博士 努力证友中， 欢迎大家推荐 ',955,0,0);"
				+ "c.o(1356613,1356613,'baixuefei','g ',1241443818,'明媚青年节，靠谱gg征寻靠谱mm ',1281,0,0);"
				+ "c.o(1356615,1356615,'coyibitle','m@',1241444061,'婚礼周年，发张照片 ',62,0,0);"
				+ "c.o(1356634,1356634,'lightsky','b@',1241445969,'84鼠mm诚征非公务猿gg_update版 ',2852,0,0);"
				+ "c.o(1356640,1356640,'Rilly','  ',1241446216,'MINGFA被取消在PieLove版的发文权限 ',146,0,0);"
				+ "c.o(1356687,1356687,'tianshi9999','g ',1241448095,'代成熟帅气的百万小钻且有房的男士真诚征婚 ',262,0,0);"
				+ "c.o(1356704,1356704,'Rilly','  ',1241448833,'lightsky被取消在PieLove版的发文权限 ',148,0,0);"
				+ "c.o(1356708,1356708,'mildmushroom','b@',1241448932,'替在杭州工作的MM征婚（附照） ',705,0,0);"
				+ "c.o(1356762,1356762,'huluobo','g ',1241451651,'很认真地征mm ',935,0,0);"
				+ "c.o(1356776,1356776,'soros1','g ',1241452558,'五四节会有好运,征MM ',177,0,0);"
				+ "c.o(1356857,1356857,'comebackkid','g ',1241480861,'海外学人征MM ',3440,0,0);"
				+ "c.o(1356915,1356915,'Rilly','  ',1241488233,'cimm被取消在PieLove版的发文权限 ',144,0,0);"
				+ "c.o(1356978,1356978,'Jamesabc','g ',1241489855,'代友诚征女友 ',395,0,0);"
				+ "c.o(1357007,1357007,'MicroWoW','b ',1241491526,'代漂亮可人的表姐诚征GG，附照片哦~~~ ',1152,0,0);"
				+ "c.o(1357048,1357048,'Rilly','  ',1241495072,'looooser被取消在PieLove版的发文权限 ',148,0,0);"
				+ "c.o(1357054,1357054,'Rilly','m ',1241496197,'【版务】looooser因虚假征友行为进入版面黑名单 ',154,0,0);"
				+ "c.o(1357085,1357085,'banker','g ',1241498850,'代友诚征女友 ',426,0,0);"
				+ "c.o(1357089,1357089,'lesrv9395','m ',1241499215,'代友征婚（for gg) ',549,0,0);"
				+ "c.o(1357102,1357102,'lixianghui','m ',1241502382,'代一个mm征友 ',1090,0,0);"
				+ "c.o(1357107,1357107,'xyqf','m ',1241503272,'想再好好爱（征男友） ',164,0,0);"
				+ "c.o(1357126,1357126,'Rilly','  ',1241507012,'pie1ove被取消在PieLove版的发文权限 ',147,0,0);"
				+ "c.o(1357134,1357134,'neptuneQJ','m ',1241509004,'代一mm征友 ',532,0,0);"
				+ "c.o(1357144,1357144,'hary','b@',1241511467,'普通女孩征GG ',2953,0,0);"
				+ "c.o(1357146,1357146,'bjbhlt','g ',1241511704,'代一清华北大毕业，著名企业工作的帅哥征婚 ',319,0,0);"
				+ "c.o(1357150,1357150,'Rilly','  ',1241512306,'shabby被取消在PieLove版的发文权限 ',146,0,0);"
				+ "c.o(1357157,1357157,'fhalzie83','b@',1241514104,'再次征女友 ',1536,0,0);";
		String REGEX = "\\d{7},'.*','[a-z]{0,3}@";
		String REGEX2 = "c\\.o";
		Pattern p = Pattern.compile(REGEX2);
		String[] str = p.split(temp);
		for(int i=0;i<str.length;i++){
			if(str[i].indexOf("@'")!=-1)
			System.out.println(str[i]);
			
		}
		

	}

}
